import Http from "../../utils/HttpUtil";
import URL from "../URL";
export default{
    //查询应试宝典列表
    async  SelectExaminationBookList(page=1){
        let url=URL.GetURL(URL.SelectExaminationBookList);
        return await(Http.Get(url+"?page="+page))
        .then(response=>{
            return(response);
        },reject=>{
            return Promise.reject(reject);
        });
    },

    //应试宝典列表详情
    async  SelectExaminationBookListDetail(id){
        let url=URL.GetURL(URL.SelectExaminationBookListDetail);
        return await(Http.Get(url+"?id="+id))
        .then(response=>{
            return(response);
        },reject=>{
            return Promise.reject(reject);
        });
    },

    //应试宝典搜索
    async  SelectExaminationBookListSearch(content){
        let url=URL.GetURL(URL.SelectExaminationBookListSearch);
        return await(Http.Get(url+"?content="+content))
        .then(response=>{
            return(response);
        },reject=>{
            return Promise.reject(reject);
        });
    },
}